import { post, get, download } from "../../utils/request";

export default {
  //  敏感日志列表
  fetchSensitiveLogList: data => post("mgt/list/sensitiveLog", data),
  // 敏感日志导出
  exportSensitiveExcel: data => download("mgt/export/sensitiveLog", data),
  // 操作日志列表
  fetchOperateLogList: data => post("mgt/list/operateLog", data),
  // 操作日志部门
  fetchOperateDepList: data => post("mgt/operateLog/depVos", data),

  fetchOperateTypeList: data => post("mgt/operateLog/resourceType", data),
  // 操作日志导出
  exportOperateExcel: data => download("mgt/export/operateLog", data),
  // 待办事项
  fetchBackLogList: data => post("mgt/list/pendingEvent", data),
  // 待办事项部门
  fetchBackDepList: data => post("mgt/pendingEvent/depVos", data),
  // 待办事项推送渠道
  fetchBackChannelList: data => post("mgt/pendingEvent/pushChannelVos", data),
  // 消息总线-待办事项
  fetchMessageBackLog: data => post("mgt/msgSource/toDeal", data),
  // 消息总线-待办事项-归属部门
  fetchMessBackDept: data =>
    post("mgt/pendingEvent/handleMsgSource/depVos", data),
  // 消息总线-审批
  auditMessage: data => post("mgt/pendingEvent/handleMsgSource", data),

  // 接口日志列表
  interFaceList: data => post("mgt/interFace/list", data),

  // 导出接口日志列表
  exportInterFaceLog: data =>
    download("mgt/interFace/export/interFaceLog", data),
  // 获取租户信息
  getTenantByCode: data => get("mgt/base/tenant/selectByTenantCode", data),
  // 更新租户信息
  updateTenantByCode: data => post("mgt/base/tenant/updateByTenantCode", data),
  // 更细租户秘钥
  updateKeyName: data => get("mgt/base/tenant/updateKeyName", data),
  // 校验用户
  checkLogin: data => post("mgt/base/tenant/checkLogin", data),
};
